
'''
>>> from functions_plot import *
>>> sinkinput = SinkFileData('../test_data/Cl6_sink_data/11122410.txt')
>>> Macc = sinkinput.return_field('Macc')
>>> Mbh = sinkinput.return_field('Mbh')
>>> BHtime = makefunc(Mbh/Macc)
>>> data = BHtime()
>>> print data
[..., ..., ...]
>>>

'''

def makefunc(operation) :
    
#sparse but should work    
    def generated_function() :
        return eval(operation)
        

    return generated_function






